﻿using System.ComponentModel.DataAnnotations;
using StudentManagementSystem.Entities;

namespace StudentManagementSystem.Dtos
{
    public class CompanyAddDto
    {
        [Display(Name = "公司名称")]
        [Required(ErrorMessage = "{0}这个字段是必填项")]
        [MaxLength(100, ErrorMessage = "{0}的最大长度不能超过{1}")]
        public string Name { get; set; }

        [Display(Name = "简介")]
        [Required(ErrorMessage = "{0}这个字段是必填项")]
        [StringLength(100, MinimumLength = 10, ErrorMessage = "{0}的长度范围为{2}-{1}")]
        public string Introduction { get; set; }

        public ICollection<Employee> Employees { get; set; } = new List<Employee>();
    }
}
